import request from '@/utils/request.js'

//提供调用全部列表信息的函数
export const searchleader = (leaderData)=>{
    return  request.post('/leader/getAll',leaderData)
}
//添加
export const leaderAddService = (leaderData)=>{
    return request.post('/leader/add',leaderData);

}
//编辑
export const leaderUpdateService = (leaderData)=>{
    return request.post('/leader/update',leaderData);
}
//删除
export const leaderDelService = (leaderData)=>{
    return request.post('/leader/delete',leaderData);
}